Android Application Development with Maven by Papapetrou Patroklos & LALOU Jonathan
Author:Papapetrou, Patroklos & LALOU, Jonathan [Papapetrou, Patroklos]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-03-19T04:00:00+00:00
Tip
Please make sure that the emulator/device screen you will use to run Robotium tests is unlocked; otherwise, you will receive an error during execution. If you haven't compiled the parent project so far, you can run the following Maven command on the root folder:
mvn clean package
The output is expected to be the same with the one we saw when running instrumentation tests using Android's testing framework.
UI Tests made easy with Selendroid
So far, we examined frameworks and tools that focus on Android components such as activities, services, intents, and so on. This is, with no doubt, very useful, but one of the key factors for a successful mobile application is a bug-free UI. In this section, we will discuss one of the most popular—and easy to use with Maven—tools for UI: Selendroid (http://selendroid.io/). One might argue that Selendroid is not the only available options for Android UI Testing, and this is absolutely true. It is a highly emerging field, but at the time of writing the book we had to pick only one of them due to the limited number of pages. We made our choice based on the level of integration with Maven, the maturity, stability, and the easiness of writing test cases.
Selendroid is a testing framework for native, hybrid, and mobile web applications based on Selenium, the most popular web UI testing framework. To use Selendroid, you should have a basic knowledge of Selenium because the tests are written using the Selenium 2 Client API. You can run Selendroid tests against emulators or real devices connected to the machine that runs the Selenium Client. In the remaining part of this section, we will show you how to configure Maven, then we will explore a basic Selendroid test case for our application, and finally we will see how to run the test using Maven.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(21661)
Hello! Python by Anthony Briggs(20890)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(19357)
Dependency Injection in .NET by Mark Seemann(18942)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(18567)
Kotlin in Action by Dmitry Jemerov(18356)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(18164)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(17026)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16953)
Grails in Action by Glen Smith Peter Ledbrook(16143)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13828)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11830)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10650)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10591)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9754)
Hit Refresh by Satya Nadella(9101)
The Kubernetes Operator Framework Book by Michael Dame(8534)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8358)
Robo-Advisor with Python by Aki Ranin(8303)